package com.lu.test.dependcycle;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class CustomAspect {
	// 切入点 可以多个
	//@Pointcut("execution(* com.lu.test.dependcycle.*.*(..))")
	@Pointcut("execution(* com.lu.test.dependcycle.AService.*(..))")
	public void pointcut1() {
		System.out.println("========================切入点1======================");
	}

	// 前置通知
	@Before(value = "pointcut1()")
	public void before(JoinPoint joinPoint) {
		System.out.println("========================前置通知======================");
	}
}
